const getEquityNetwork = (req, res) => {
  res.json({
    code: 0,
    msg: '',
    data: {
      nodes: [
        {
          id: '4d3df93c-6113-4c1c-85fe-3dc7d6f1aa0d',
          name: '包商银行股份有限公司',
          category: 'E',
          date: '202030',
          percent: 1.0,
          value: 100,
        },
        {
          id: '00001b69-d265-40d2-affa-a527aaa1a000',
          name: '石家庄唐斯诺光电科技有限公司',
          category: 'E',
          date: '202030',
          percent: 0.35,
          value: 100,
        },
        {
          id: '0000ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '广元远景商贸有限公司',
          category: 'E',
          date: '202030',
          percent: 0.5,
          value: 100,
        },
        {
          id: '1234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '远景商贸有限公司',
          category: 'E',
          date: '202030',
          percent: 0.5,
          value: 100,
        },
        {
          id: '2234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '商贸有限公司',
          category: 'E',
          date: '202030',
          percent: 0.5,
          value: 100,
        },
        {
          id: '3234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '远贸有限公司',
          category: 'E',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: '4234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '远商有限公司',
          category: 'E',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: '5234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '景贸有限公司',
          category: 'E',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: '6234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '郭德商贸有限公司',
          category: 'E',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: '7234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '远限公司',
          category: 'E',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: 'Person01-5b8e-4867-9eb3-beee0f3c4300',
          name: '吴倩',
          category: 'P',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: 'Person02-5b8e-4867-9eb3-beee0f3c4300',
          name: '张三',
          category: 'P',
          value: 100,
          date: '202030',
          percent: 0.5,
        },
        {
          id: 'Person03-5b8e-4867-9eb3-beee0f3c4300',
          name: '李四',
          category: 'P',
          date: '202030',
          percent: 0.5,
        },
        {
          id: 'Person04-5b8e-4867-9eb3-beee0f3c4300',
          name: '网二',
          category: 'P',
          date: '202030',
          percent: 0.5,
        },
        {
          id: 'Person05-5b8e-4867-9eb3-beee0f3c4300',
          name: '王大福',
          category: 'P',
          date: '202030',
          percent: 0.5,
        },
      ],
      links: [
        {
          source: 'Person04-5b8e-4867-9eb3-beee0f3c4300',
          target: 'Person04-5b8e-4867-9eb3-beee0f3c4300',
          value: 1,
          tstart: '2019-01-01'
        },
        {
          source: '0000ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '4d3df93c-6113-4c1c-85fe-3dc7d6f1aa0d',
          value: 0.5,
          tstart: '2019-01-01'
        },
        {
          source: '00001b69-d265-40d2-affa-a527aaa1a000',
          target: '4d3df93c-6113-4c1c-85fe-3dc7d6f1aa0d',
          value: 0.1,
          tstart: '2019-01-01'
        },
        {
          source: '00001b69-d265-40d2-affa-a527aaa1a000',
          target: '0000ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.5,
          tstart: '2020-01-01'
        },
        {
          source: '1234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '4d3df93c-6113-4c1c-85fe-3dc7d6f1aa0d',
          value: 0.01,
          tstart: '2020-01-01'
        },
        {
          source: '2234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '1234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.5,
          tstart: '2020-01-01'
        },
        {
          source: '3234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '2234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.5,
          tstart: '2020-01-01'
        },
        {
          source: '4234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '3234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.5,
          tstart: '2020-01-01'
        },
        {
          source: 'Person01-5b8e-4867-9eb3-beee0f3c4300',
          target: '4234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.5,
          tstart: '2021-01-01'
        },
        {
          source: 'Person02-5b8e-4867-9eb3-beee0f3c4300',
          target: '3234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.2,
          tstart: '2021-01-01'
        },
        {
          source: '5234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '00001b69-d265-40d2-affa-a527aaa1a000',
          value: 0.1,
          tstart: '2021-01-01'
        },
        {
          source: '6234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '5234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.15,
          tstart: '2021-01-01'
        },
        {
          source: 'Person03-5b8e-4867-9eb3-beee0f3c4300',
          target: '6234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.05,
          tstart: '2021-01-01'
        },
        {
          source: 'Person04-5b8e-4867-9eb3-beee0f3c4300',
          target: '6234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.2,
          tstart: '2021-01-01'
        },
        {
          source: 'Person05-5b8e-4867-9eb3-beee0f3c4300',
          target: '5234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.15,
          tstart: '2021-01-01'
        },
        {
          source: '7234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          target: '5234ea6b-5b8e-4867-9eb3-beee0f3c4300',
          value: 0.15,
          tstart: '2021-01-01'
        },
      ],
    },
  });
};

const getEquityTopKPath = (req, res) => {
  res.json({
    code: 0,
    msg: '',
    data: {
      pathList: [
        {
          percent: 0.1,
          nodes: ['00001b69-d265-40d2-affa-a527aaa1a000', '0000ea6b-5b8e-4867-9eb3-beee0f3c4300'],
          links: [
            {
              source: '0000ea6b-5b8e-4867-9eb3-beee0f3c4300',
              target: '4d3df93c-6113-4c1c-85fe-3dc7d6f1aa0d',
              value: 0.5,
            },
            {
              source: '00001b69-d265-40d2-affa-a527aaa1a000',
              target: '4d3df93c-6113-4c1c-85fe-3dc7d6f1aa0d',
              value: 0.1,
            },
            {
              source: '00001b69-d265-40d2-affa-a527aaa1a000',
              target: '0000ea6b-5b8e-4867-9eb3-beee0f3c4300',
              value: 0.5,
            },
          ],
        },
      ],
    },
  });
};

const getEquityLevelRank = (req, res) => {
  res.json({
    code: 0,
    msg: '',
    data: {
      enterpriseList: [
        {
          eid: '00001b69-d265-40d2-affa-a527aaa1a000',
          name: '石家庄唐斯诺光电科技有限公司',
          status: '存续（在营、开业、在册）',
          level: 42,
          avatar: '/rankimg/478ae772-fbec-4275-951f-e1462386753f.jfif',
        },
        {
          eid: '0000ea6b-5b8e-4867-9eb3-beee0f3c4300',
          name: '广元远景商贸有限公司',
          status: '存续（在营、开业、在册）',
          level: 40,
          avatar: '/rankimg/478ae772-fbec-4275-951f-e1462386753f.jfif',
        },
        {
          eid: '0000ea6b-5b8e-4867-9eb3-beee0f3c4301',
          name: '关原远景商贸有限公司',
          status: '存续（在营、开业、在册）',
          level: 25,
          avatar: '/rankimg/478ae772-fbec-4275-951f-e1462386753f.jfif',
        },
        {
          eid: '0000ea6b-5b8e-4867-9eb3-beee0f3c4302',
          name: '光源远景商贸有限公司',
          status: '存续（在营、开业、在册）',
          level: 18,
          avatar: '/rankimg/478ae772-fbec-4275-951f-e1462386753f.jfif',
        },
        {
          eid: '0000ea6b-5b8e-4867-9eb3-beee0f3c4303',
          name: '光远远景商贸有限公司',
          status: '存续（在营、开业、在册）',
          level: 15,
          avatar: '/rankimg/478ae772-fbec-4275-951f-e1462386753f.jfif',
        },
        {
          eid: '0000ea6b-5b8e-4867-9eb3-beee0f3c4304',
          name: '广源远景商贸有限公司',
          status: '存续（在营、开业、在册）',
          level: 10,
          avatar: '/rankimg/478ae772-fbec-4275-951f-e1462386753f.jfif',
        },
      ],
    },
  });
};

export default {
  'GET /api/ep/equityNetwork': getEquityNetwork,
  'GET /api/equityTopKPath': getEquityTopKPath,
  'GET /api/equityLevelRank': getEquityLevelRank,
};
